package com.whu.helpluojia.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.whu.helpluojia.domain.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageDao extends BaseMapper<Message> {


    @Select("  ")
    List<Message> selectOneUser(@Param("userId") Long userId,@Param("otherId") Long otherId);

    @Select("  ")
    Page<Message> selectDisplayMessage(Page<Message> messagePage, LambdaQueryWrapper<Message> wrapper);

}
